<% if userMediumImage.image.nil? %>
<%= link_to(image_tag('default_avatar_medium.jpg'),
           user_path(userMediumImage.login))
%>
<% else %>
<%= link_to(image_tag(url_for_file_column(userMediumImage, "image", "thumb")),
           user_path(userMediumImage.login))
%>
<% end %>